#include <fstream>
#include <string>
#include <iostream>

using namespace std;

int main()
{
    ifstream ifs("/proc/xen/capabilities");
    if (ifs.is_open())
    {
	    string line;
	    ifs >> line;
	    if (line.empty())
	    cout << "This machine is a Xen Virtual Machine" << endl;
	    else
            cout << "This machine is a Xen Server" << endl;
    }
    else
    {
	   cout << "This machine is not a Xen server or Xen Virtual Machine"  << endl;
    }

    return 0;
}
